#获取请求头方法
from api.IhrmLoginApi import IhrmLoginApi


def get_headers():
    json_data= {"mobile": "13800000002", "password": "888itcast.CN764%..."}
    resp = IhrmLoginApi.login(json_data)
    headers_data={"Content-type":"application/json","Authorization": "Bearer " + resp.json().get("data")}
    return headers_data

if __name__ == '__main__':
    ret=get_headers()
    print(ret)
